# from selenium.webdriver.support.wait import WebDriverWait
# from selenium.webdriver.support import expected_conditions as EC
#
# class BasePage(object):
#     def __init__(self,driver,url=None):
#         self.driver = driver
#         if url is not None:
#             self.driver.get(url)
#     def find_element(self,locator):
#         return WebDriverWait(self.driver,10).until(
#             EC.presence_of_element_located(locator=locator)
#         )
#
#     def find_elements(self):
#         return WebDriverWait(self.driver, 10).until(
#             EC.presence_of_all_elements_located
#         )
#
# class Element(object):
#     def __init__(self,_element,_driver):
#         self.element = _element
#         self.driver = _driver
#
#     def click(self):
#         WebDriverWait(self.driver,10,ignored_exceptions=).until(
#             lambda d:not self.element.click()
#         )
#
